/*
 * @Date: 2024-08-23 15:49:33
 * @Author: LiSong
 * @LastEditors: LiSong
 * @LastEditTime: 2025-04-11 16:28:37
 * @Description: 开关按钮组件配置
 */
export default {
  type: 'switch',
  icon: 'switch-field',
  // 排序
  order: 120,
  enabled: true,
  formItemFlag: true,
  options: {
    // ----- 补充字段
    code: '', // 表单回显，字段编码
    dataField: '', // 数据字段，存储使用
    // ----- 原始字段
    name: '',
    label: '',
    labelAlign: '',
    defaultValue: undefined,
    columnWidth: '200px',
    labelWidth: null,
    labelHidden: false,
    disabled: false,
    hidden: false,
    configType: 0,
    required: false,
    requiredHint: '',
    validation: '',
    validationHint: '',
    //-------------------
    customClass: '',
    // 标签文字提示
    labelTooltip: null,
    labelIconClass: null,
    labelIconPosition: 'rear',
    switchWidth: 40,
    activeText: '是',
    inactiveText: '否',
    // 数值的类型 number string
    valueType: 'number',
    activeValue: 1,
    inactiveValue: 2,
    activeColor: null,
    inactiveColor: null,
    //-------------------
    onCreated: '',
    onMounted: '',
    onChange: '',
    onValidate: '',
  },
}
